<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<f:view>
    <%--@include file="../jspf/html_inicio.jspf" --%>
    <%--@include file="../jspf/menu_principal.jspf" --%>
    <link href="/evento/css/admin_2.css" rel="stylesheet" type="text/css"/>

    <t:div>

        <h:form>
            <br>
            <h:panelGrid columns="1" width="100%" styleClass="tablaprincipal">
                <h:outputLabel value="Registrar Usuario Web" />
            </h:panelGrid>

            <table border="0" width="100%" cellpadding="2" cellspacing="2" class="tablanormal">
                <tr>
                    <td width="15%" align="right">Permiso: </td>
                    <td width="85%">
                        <h:inputText value="#{PermisoController.permiso.pmsNombre}" size="20" maxlength="20" />
                    </td>
                </tr>
                <tr>
                    <td align="right">Orden: </td>
                    <td>
                        <h:inputText value="#{PermisoController.permiso.pmsOrden}" size="4" maxlength="4" />
                    </td>
                </tr>
            </table>
            <br/>
            <h:commandButton styleClass="desactivar" id="btnRetornar" value="Retornar" accesskey="R"
                             action="#{PermisoController.listar}" title="Retornar"/>
            &nbsp;&nbsp;
            <h:commandButton styleClass="desactivar" id="btnGuardar" value="Guardar" accesskey="G"
                             action="#{PermisoController.guardar}"  onclick="return confirm('Deseas registrar los datos del Permiso?');" title="Guardar" />
            &nbsp;&nbsp;
            <h:commandButton styleClass="desactivar" id="btnCancelar" value="Cancelar" 
                             type="reset" title="Cancelar" accesskey="A"/>
            <br/><br/>
            <h:messages id="lblMessages" showDetail="true" errorStyle="color:red;" warnStyle="color:green;" infoStyle="color:black;"/>

        </h:form>
    </t:div>
    <%--@include file="../jspf/pie.jspf" --%>
</f:view>
